
# 导入所需库
import cv2

# 导入处理函数
from processModel import process

# 定义处理参数
first_slice = 0
last_slice = 99
interval = 1

# 读取图像序列
image_sequence = []
for i in range(first_slice, last_slice + 1):
    filename = f"image_{i}.jpg"  # 假设图像文件名为 image_0.jpg, image_1.jpg, ..., image_99.jpg
    image = cv2.imread(filename)
    image_sequence.append(image)

# 调用处理函数
process(image_sequence, first_slice, last_slice, interval)
